package com.xingkeduo.dto.response;

import com.xingkeduo.pojo.table.Order;
import lombok.Data;

import java.util.List;

@Data
public class OrderServiceDto {
    private int serviceTimes;//服务次数
    private int serviceDays;//服务天数；

    public void covert(List<Order> orders,int daysNum) {
        this.serviceTimes=orders.size();
        this.serviceDays=daysNum;
    }
}
